<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车</title>
    
    <link rel="stylesheet" href="/static/user/css/reset.css">
    <link rel="stylesheet" href="/static/user/css/cart1.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_2075499_hkggbre7wq.css">
    <script src="/static/user/js/jquery-3.4.1.js"></script>
    <script src="/static/user/js/cart1.js"></script>
    <style>
    a{
        text-decoration: none !important;
    }
    </style>

</head>
<body>
<div id="header">
    <div id="userinfo_bar" class="hd_bar">
        <div class="bd">
            <div class="left-side left clearfix">
                <div class="left-side-item logo">
                    <img src="/static/user/images/xsSchool.png" alt="">
                </div>
                <div id="ECS_MEMBERZONE" class="left-side-item hdlbar">
                    <a style="text-decoration:none;color: #fff" href="/">莞工零食商城首页</a>


                </div>
            </div>
            <div class="right-side">
                <li class="right-side-item focuson">
                    <span>1</span>我的购物车
                    <i class="iconfont icon-sanjiaoxing_shang"></i>
                </li>
                <li class="right-side-item arrow">
                </li>
                <li class="right-side-item">
                    <span>2</span>确认订单信息
                    <i class="iconfont icon-sanjiaoxing_shang"></i>
                </li>
                <li class="right-side-item arrow">
                </li>
                <li class="right-side-item">
                    <span>3</span>成功提交订单
                    <i class="iconfont icon-sanjiaoxing_shang"></i>
                </li>
            </div>
        </div>
    </div>
</div>
<div id="main">
    <div class="fr clearfix">
        <a href="../order/get" id="checkout-top" class="btn" {if $arr==1}onclick="return false;" style="background:#ccc"{/if}>去结算</a>
        <a href="/user/index/index" class="graybtn">继续购物</a>
    </div>
    <div class="top-next cle clearfix">
        <div id="cart-box" class="cart-box">
            <div class="hd">
                <span id="itemsnum-top" class="no2"><strong id="total_num">{$total_num}</strong>件商品</span>
                <span class="no4">单价</span>
                <span>数量</span>
                <span>小计</span>
            </div>
            <div class="goods-list">
                <ul>
                    {if $arr!=1}
                    {volist name="$arr" id="a"}
                    <li class="cle hover re" style="border-bottom-style: none;">
                        <input type="hidden" name="id" value="{$a.id}" class="goods_id">
                        <div class="pic"><a href="javascript:;" target="_blank"><img src="/static/admin/uploads/{$a.thumb}" alt="澳洲肥牛套餐"></a></div>
                        <div class="name">
                            <a href="">
                                {$a.goods_name}
                                <span style="color: #ff0000"></span>
                            </a>
                            <p></p>
                        </div>
                        <div class="price-xj" style="position: relative;">
                            <p style="position: absolute;top: 0px">
                                <span>￥</span><em class="price">{$a.sale_price}</em><span>元</span>
                            </p>
                        </div>
                        <div class="nums">
                            <span class="minus" title="减少一个数量" onclick="MinusNum(this);">-</span>
                            <input type="text" class="goods_number_34" value="{$a.num}">
                            <span class="add" title="增加一个数量" onclick="AddNum(this);">+</span>
                        </div>
                        <div class="price-xj">
                            <span>￥</span><em class="totle_items_34">{$a.total_price}</em><span>元</span>
                        </div>
                        <div class="del">

                            <a href="javascript:;" class="btn-del" onclick="delcart(this)">删除</a>
                        </div>

                    </li>
                    {/volist}
                    {else}
                    <span style="margin-left: 450px;">购物车暂无商品</span>
                    {/if}

                </ul>

            </div>
            <div class="fd cle">
                <div class="fl">
                    <p class="no1">
                        <a id="del-all" href="javascript:;" onclick="cleancart()">清空购物车</a>
                    </p>
                    <p><a href="/user/index/index" class="graybtn">继续购物</a></p>
                </div>
                <div id="price-total" class="fr">
                    <p><span id="selectedCount">{$total_num}</span>件商品,总价: <span class="red"><strong id="totalSkuPrice">{$sum_price}</strong></span></p>

                    <p><a href="../order/setorder" class="btn" {if $arr==1}onclick="return false;" style="background:#ccc"{/if}>去结算</a></p>
                </div>


            </div>
        </div>

    </div>

</div>
<!-- 楚雄零食商城页尾 -->
{include file="common/footer"}
<!-- 回到顶部 -->
<a class="ret" onclick="backtoTop();">
    <img src="/static/user/images/gotop.png" alt="">
</a>

</body>
<script src="/static/user/js/jquery-3.4.1.js"></script>
<script>



</script>
</html>